﻿using EMall.Application;
using EMall.Query;

namespace EMall.IdentityService.Menus
{
    public interface IMenuAppService : IApplicationService
    {
        Task CreateAsync(CreateMenuDto input);
        Task UpdateAsync(UpdateMenuDto input);
        Task DeleteAsync(DeleteMenuDto input);
        Task<MenuDto> GetAsync(int id);
        Task<IEnumerable<MenuListDto>> GetListAsync(GetMenuListQueryDto input);
        Task<IPagedList<MenuListDto>> GetPagedListAsync(GetMenuListPagingAndSortingQueryDto input);
        Task<MenuTree> GetTreeAsync(GetTreeQueryDto input);
    }
}